import {CustomerBaseInfoResponse} from 'api/CustomerBaseController';
import Actions from './actions';
import {listDetail} from '@/pages/package-D/serviceCentre/types';
import {MemberInfo} from '@/pages/index/types';
export interface IMainReducer {
  isReady: boolean;
  isLoading?: boolean;
  lanjingList: any[];
  chijingList: any[];
  selectCard: number;
  selectId: number;
  menu: any[];
  lanjings: any[];
  chijings: any[];
  lanjingLength: number;
  chijingLength: number;
  customer: null | CustomerBaseInfoResponse;
  showModel: boolean;
  isAquamarineMember: boolean;
  isCrystalMember: boolean;
  list: listDetail[];
  selected: number;
  memberCardType: 'noMember' | 'lanjing' | 'chijing' | 'shuangchong';
  memberInfo?: MemberInfo;
  customerId?: string;
}

export type ActionType = ReturnType<typeof Actions>;
export type IAllReducerProps = {
  main: IMainReducer;

  [name: string]: any;
};

//默认是全部的属性,可以自定义
export type IProps = IAllReducerProps & ActionType;

export type ITopProps = {};
export type ITopState = {
  modelContent?: string;
  channel?: string;
  secret?: string;
  daowayUrl: string;
};

export type ILeftProps = {};
export type ILeftState = {};

export type IBottomProps = {};
export type IBottomState = {};

//create by moon https://github.com/creasy2010/moon
